//
//  Utils.swift
//  SwiftDemo
//
//  Created by zhudeshuai on 2018/9/13.
//  Copyright © 2018年 zhudeshuai. All rights reserved.
//

import Foundation
import UIKit
class Utils {
    
    //显示弹窗提示
    static func showMessage(viewController:UIViewController, message:String){
        let alertController = UIAlertController(title:"tip", message:message as String, preferredStyle:UIAlertControllerStyle.alert);
        alertController.addAction(UIAlertAction(title:"OK",style:UIAlertActionStyle.default,handler:nil));
        viewController.present(alertController, animated:true, completion:nil);
    }
    
    //获取屏幕宽度
    static func getScreenWidth()->CGFloat{
        return UIScreen.main.bounds.size.width;
    }
    //获取屏幕高度
    static func getScreenHeight()->CGFloat {
        return UIScreen.main.bounds.size.height;
    }
    
}
